<?php

namespace app\api\validate;


class ImageValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'isPositiveInteger',
        'img' => 'require|isNotEmpty',
        'type' => 'require|isNotEmpty',
        'img_type' => 'require',
    ];

    protected $message = [
        'img.require' => '请选择上传的图片',
        'type.require' => '上传图片类型有误',
    ];
}
